package builder;

public class BuilderB extends Builder {

    // 饮料
    ProductB productB;

    public BuilderB() {
        this.productB = new ProductB();
    }

    @Override
    public void buildPartA() {
        productB.setName("可乐");
    }

    @Override
    public void buildPartB() {

    }

    @Override
    public void buildPartC() {

    }

    @Override
    public Product getResult() {
        return productB;
    }
}
